import re
text = open('mybooks.xml').read()

found = re.findall('<title>(.*)</title>', text)

for title in found:
    print(title)
